package com.dlnu.service.impl;

import com.dlnu.bean.Menu;
import com.dlnu.mapper.MenuMapper;
import com.dlnu.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MenuServiceImpl implements MenuService {

    @Autowired
    private MenuMapper menuMapper;

    @Override
    public List<Menu> query(Integer userId){
        return menuMapper.query(userId);
    }

    @Override
    public List<Menu> list(){
        return menuMapper.list();
    }

    @Override
    public List<Integer> queryCheckMenuId(Integer userId){
        return menuMapper.queryCheckMenuId(userId);
    }

    @Override
    public List<Menu> queryByType(){
        return menuMapper.queryByType();
    }

}
